package com.wn55.hrms.mapper;

import com.wn55.hrms.entity.Security;
import org.springframework.stereotype.Repository;

import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author z
 */
@Repository
public interface SecurityMapper {
    int deleteByPrimaryKey(Integer sId);

    int insert(Security record);

    Security selectByPrimaryKey(Integer sId);

    List<Security> selectAll();

    int updateByPrimaryKey(Security record);

    List<Security> selectByName(String name);

    void update(Security security);

    @Select("select * from security where emp_code=#{id}")
    Security selectSecurityByEmpId(Long id);
}